<style type="text/css">
	#mobile-description p {
		color: #333;
		font-weight: normal;
	}
</style>
<div id="mobile-detail">
	<?php echo $this->Html->image($game['Game']['thumbnail']); ?>
	<div id="mobile-description">
		<h2 id="mobile-title"<?php echo $game['Game']['name']; ?></h2>
		<p>Nhà phát hành:<?php echo $game['Publisher']['name']; ?></p>
		<p>Lượt tải: 1000</p>
		<p>Thích: 1000</p>
		<?php echo $this->Html->link('Tải game', $game['System'][$os]['GamesSystem']['download'], array('escape' => false)); ?>
	</div>
</div>
<div id="tabContainer">
	<div id="tabs">
		<ul>
			<li id="tabHeader_1">Giới thiệu</li>
			<li id="tabHeader_2">Hình ảnh game</li>
			<li id="tabHeader_3">Bình luận</li>
		</ul>
	</div>
	
	<div id="tabscontent">
		<div class="tabpage" id="tabpage_1">
			<p><?php echo $game['Game']['description']; ?></p>
		</div>
		
		<div class="tabpage" id="tabpage_2">
			<p>
				<?php 
					foreach ($game['Image'] as $image) {
						echo $this->Html->image($image['url']);
					}
				?>
			</p>
		</div>
		
		<div class="tabpage" id="tabpage_3">
			<section id="form-comment">
				<?php
					echo $this->Form->create('Comment', array('url' => array('controller' => 'comments', 'action' => 'add'), 'inputDefaults' => array('label' => false)));
					echo $this->Form->textarea('content', array('placeholder' => 'Nhập bình luận của bạn vào đây...'));
					echo $this->Form->input('game_id', array('value' => $game['Game']['id'], 'type' => 'text', 'hidden' => true, 'div' => false));
					echo $this->Form->submit('Gửi bình luận', array('class' => 'comment-submit', 'div' =>false));
					echo $this->Form->end();
				?>
				
			</section>
			<div style="clear: both"></div>
			<?php
				if(isset($comments)) :
					foreach($comments as $comment):
			?>
			<section id="box-comment">
				<p class="user-info"><?php echo $comment['User']['username']; ?> - <span><?php echo date('d/m/Y', $comment['Comment']['created']); ?></span></p>
				<p class="comment"><?php echo $comment['Comment']['content']; ?></p>
			</section>
			<?php 
					endforeach;
				endif;
			?>
			
		</div>
	</div>
</div>